package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.CircleLikes;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CircleLikesMapper extends MPJBaseMapper<CircleLikes>, BaseMapper<CircleLikes> {
    // 使用MyBatis的@Select注解来定义SQL查询
    @Select("SELECT * FROM circle_likes WHERE classes_circle_id = #{classesCircleId}")
    List<CircleLikes> selectByClassesCircleId(Integer classesCircleId);
}
